package com.ba360.portal.categories;


import java.util.List;

public class MainCat {
	public String mainCat;

	public int mainCatId;

	public List subCatList;

	public String subCatName;

	public MainCat(String mainCat, List subCats) {
		this.mainCat = mainCat;
		this.subCatList = subCats;

	}

	public String getMainCat() {
		return mainCat;
	}

	public List getSubCatList() {
		return subCatList;
	}

	public int getMainCatId() {
		return mainCatId;
	}

	public void setMainCatId(int mainCatId) {
		this.mainCatId = mainCatId;
	}

	public String getSubCatName(int index) {
		SubCatList sub = (SubCatList) subCatList.get(index);
		return sub.getSubCatName();
	}
	/*
	 * public class SubCatItem { String subCatName; public SubCatItem(String
	 * subCatItems) { this.subCatName = subCatItems; } public String
	 * getSubCatName() { return subCatName; } }
	 */
}